import { post } from '@/utils/http4dev'
import { api${moduleName} } from '@/api/prefixUrl'

let commonUrl = '${moduleName}/${functionName}'

export const query = (params) => {
	return post(api${moduleName} + commonUrl + '/page'  , params)
}

export const queryById = (params) => {
	return post(api${moduleName} + commonUrl + '/get',params)
}

export const deleteById = (params) => {
	return post(api${moduleName} + commonUrl + '/delete'  , params)
}

export const save = (params) => {
	return post(api${moduleName} + commonUrl + '/save'  , params)
}

export const update = (params) => {
	return post(api${moduleName} + commonUrl + '/update' , params)
}